﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="volva.Models" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h1>Þáttaraðir</h1>
        <%
        List<Series> series = ViewData["SeriesList"] as List<Series>;
        if (series.Count > 0)
        {
            foreach (Series item in series)
            {
                Response.Write("<a href='../Serie/" + item.id + "'>" + item.name + "</a><br />");
            }
        }
         %>

</asp:Content>
